home *** CD-ROM | disk | FTP | other *** search
-
- ____ _ __ ___ _ ___
- / ___| ___| |\ \ / (_)_ __ / | / _ \
- \___ \ / _ \ __\ \ /\ / /| | '_ \ | || | | |
- ___) | __/ |_ \ V V / | | | | | | || |_| |
- |____/ \___|\__| \_/\_/ |_|_| |_| |_(_)___/
-
- © 1993 by Frank Würkner
- All Rights Reserved
-
-
-
- COPYRIGHT NOTE
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- The program SetWin is copyrighted © 1993 by Frank Würkner.
- All rights reserved.
-
- SetWin is FREEWARE. This program may be freely distributed as long as
- - the executable and documentation remain unchanged and
- are included in the distribution
- - No other charge is made than to cover time and copying costs
-
-
- DISCLAIMER
- ¯¯¯¯¯¯¯¯¯¯
- No warranties of any kind are made as to the functionality of this
- program. You are using it ENTIRE at your own risk.
-
-
- SYSTEM REQUIREMENTS
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- To run SetWin you'll need OS2.0 or higher !!!
-
-
- QUICK OVERVIEW
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- SetWin let's you manipulate nearly everything of a window. You can change
- the size, position, window limits, the zipped size and titles (window and
- screen). Of course you can also cause actions on the window such as to
- activate, zip, bring it in front/back, center and close/kill it.
- You also have the ability to get information about any window.
-
-
- USAGE
- ¯¯¯¯¯
- SetWin only works in your CLI, so don't start it from your Workbench !
- Nearby SetWin is pure and can be made resident.
- It has the following template :
- WINDOW/A,VERBOSE=VERB/S,SHOW/S,ALL/S,WBWIN/S,ACTIVATE/S,
- ZIP/S,FRONT/S,BACK/S,CENTER/S,CLOSE/S,KILL/S,SCREENNAME=SN/K,
- WIN/K,ZIPWIN/K,LIMIT/K,WTITLE/K,STITLE/K
-
- WINDOW/A
- This specifies the window(s) that should be affected. There are five
- possible ways to do so :
- - By pattern (any standard AmigaDOS wildcard is supported). Your
- pattern is compared with each windowtitle of the screen,
- e.g. *any_title_segment*
- - The hexadecimal address of a window, must start with a "$",
- e.g. $0034DD50
- - Keyword "NOW". The window where the command is launched from.
- - Keyword "ACTIVE". The active window.
- - Keyword "CLICK". The programm waits for you to click with the left
- mouse-button (at least ¼ second) over a window.
-
- VERBOSE=VERB/S (this only makes sence if your window is a pattern)
- This will also promt any window (title and address) that doesn't
- match your pattern. Use this switch if you get a "No such windowtitle."
- error. Sometimes the text visible in the Title is not the real
- windowtitle.
-
- SHOW/S
- Displays information about the window in the following form
- 1: Window "<Windowtitle>" at address $<Headecimal address of window>
- 2: WIN=<X position of window>/<Y position>/<X-Size>/<Y-Size>
- (actual size <X-Size without border>x<Y-Size without border>,
- <chars per line>x<lines> chars, <X-Fontsize>x<Y-Fontsize> font)
- 3: ZIPWIN=<X position of zipped window>/<Y position>/<X-Size>/<Y-Size>
- 4: LIMIT=<min. X-Size>/<max. Y-Size>/<min. X-Size>/<max. X-Size>
- 5: WindowFlagSet{<flags describing the look of the window>}
- 6: IDCMPFlagSet{<flags describing what the window is waiting for>}
-
- ALL/S (this only makes sence if your window is a pattern)
- Means that you want affect all windows matching your pattern, not
- only the first found, e.g. "*" would match all windows that have
- a title.
-
- WBWIN/S
- The window must have the wbenchWindow-flag switched on in the
- WindowFlagSet. These are normally the windows opened by Workbench.
-
- ACTIVATE/S
- Activate the window (same as if you click in).
-
- ZIP/S
- Zip the window (same as if you click the zipgadget).
-
- FRONT/S
- Bring the window in front of all other windows.
-
- BACK/S
- Bring the window behind all other windows.
-
- CENTER/S
- Center the window relativ to the screen.
-
- CLOSE/S
- Tell the programm which owns the window to close it
- (same as if you click the closegadget).
-
- KILL/S
- Call CloseWindow() from intuition.
- WARNIG :
- You shouldn't use this switch if you are a learner.
- You must be _ABSOLUTELY_ sure that the corresponding task doesn't
- use the window anymore.
-
- SCREENNAME=SN/K
- Normally only windows of the active screen are affected, with
- this switch you can use an other screen. Of course any standard
- AmigaDOS wildcard is supported.
-
- WIN/K
- This option must be oft the form :
- "WIN=<X position of window>/<Y position>/<X-Size>/<Y-Size>"
- You can specify "*" if you don't want to change the previous
- value (this is also possible in ZIPWIN and LIMIT), e.g.
- WIN=0/0/*/* would simply move the window to the left-top of the
- screen.
-
- ZIPWIN/K
- Same as in WIN. But you will only see the result if you zip the
- window.
-
- LIMIT/K
- This option must be oft the form :
- "LIMIT=<min. X-Size>/<max. Y-Size>/<min. X-Size>/<max. X-Size>"
- Use -1 as value if don't want any restrictions, e.g.
- with LIMIT=*/*/-1/-1 you can make the window as big as you like.
-
- WTITLE/K
- Set the window title to any text you like.
- NOTE: The memory for this title will never be freed,
- although this is very little you should know about this !!!
-
- STITLE/K
- Set the screen title of the window to any text you like.
- You can only see the screentitle if the window is active.
- NOTE: The memory for this title will never be freed,
- although this is very little you should know about this !!!
-
-
- USEFULL EXAMPLES
- ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
- 1.) Have you ever opened thousands of drawers on your Workbench and
- would like to close all those windows ???
- SetWin * WBWIN CLOSE
- 2.) Do you open your shell with a command like
- NewShell "CON:0/11/639/245/MyShell" FROM S:Shell-Startup
- but you missed the possibility to set the zipped size of the window ???
- Add a line to your Shell-Startup :
- SetWin NOW ZIPWIN=559/189/80/50
- 3.) You would like to know all windows on a screen:
- SetWin * VERBOSE ALL
-
-
-
- If you have comments, suggestions, criticism, bug reports etc.
- send mail to
-
- Frank Würkner
- Georgenschwaigstr. 22
- D-80807 München
- Germany
-
- or
-
- E-Mail: wuerkner@informatik.tu-muenchen.de
-